package com.wing.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.user.model.entity.Post;
import com.wing.user.model.request.PostForm;
import com.wing.user.model.response.PostVO;

import java.util.List;
import java.util.Map;

/**
 * 岗位表-Service
 *
 * @author
 */
public interface PostService extends IService<Post> {

    /**
     * 添加
     *
     * @param postForm
     * @return
     */
    int add(PostForm postForm);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<Post> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    PostVO get4appById(Long id);
}
